package myapp.com.xm.myapplication.Aidl;

import android.os.Parcel;
import android.os.Parcelable;

import lombok.Data;

@Data
public class Bean implements Parcelable {
    private String name;

    protected Bean(Parcel in) {
        name = in.readString();
    }

    public static final Creator<Bean> CREATOR = new Creator<Bean>() {
        @Override
        public Bean createFromParcel(Parcel in) {
            return new Bean(in);
        }

        @Override
        public Bean[] newArray(int size) {
            return new Bean[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
    }
}
